package com.chujian.framework.mybatis.auth;

/**
 * @author ：chujian
 * @since : 2021-8-12
 * 查询数据权限持有者
 */
public class QueryDataAuthHolder {

    private static final ThreadLocal<QueryDataAuth> HOLDER = new ThreadLocal<>();

    public static void setQueryDataAuth(QueryDataAuth queryDataAuth) {
        HOLDER.set(queryDataAuth);
    }

    public static QueryDataAuth getQueryDataAuth() {
        return HOLDER.get();
    }

}
